extends Node2D


var timer
# Called when the node enters the scene tree for the first time.
func _ready():
	print("ready")
	timer=Timer.new()
	timer.wait_time=3.0
	timer.one_shot=false
	timer.start()
	timer.connect("timeout",self,"_process")
	pass 
func _process(delta):
	yield(timer,"timeout")
	#yield(get_tree(),"idle_frame")
	#yield(get_tree().create_timer(3.0),"timeout")
	print("process")

	pass
